package com.gopay.checkorder.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.checkorder.dao.BcdlQueryBalanceDAO;
import com.gopay.common.base.dao.impl.BaseReadDAOImpl;
import com.gopay.common.domain.bank.BcdlQueryBalance;

@Repository("bcdlQueryBalanceDAO")
public class BcdlQueryBalanceDAOImpl extends BaseReadDAOImpl<BcdlQueryBalance, String> implements BcdlQueryBalanceDAO {

    @Override
    public List<BcdlQueryBalance> getBcdlQueryByBankCodeAndOrderStatus(String bankCode, String queryOrderStatus) {
        String hql = "from BcdlQueryBalance where queryBankCode=:queryBankCode and queryOrderStatus=:queryOrderStatus";
        Map<String, Object> param = new HashMap<String, Object>();
        param.put("queryBankCode", bankCode);
        param.put("queryOrderStatus", queryOrderStatus);
        List<BcdlQueryBalance> bcdlQuery = this.findByHql(hql, param);
        return bcdlQuery;
    }
    
}
